home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / prefs / serial.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  2KB  |  78 lines

  1. #ifndef PREFS_SERIAL_H
  2. #define PREFS_SERIAL_H 1
  3. /*
  4. ** serial.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for serial.h
  17. */
  18. #ifndef SerialPrefsPtr
  19. #define SerialPrefsPtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for serial.h
  23. */
  24.  
  25.  
  26. /*****************************************************************************/
  27.  
  28.  
  29. #ifndef EXEC_TYPES_H
  30. #include <exec/types.h>
  31. #endif
  32.  
  33. #ifndef LIBRARIES_IFFPARSE_H
  34. #include <libraries/iffparse.h>
  35. #endif
  36.  
  37.  
  38. /*****************************************************************************/
  39.  
  40.  
  41. #define ID_SERL 1397051980 
  42.  
  43.  
  44. STRUCT SerialPrefs
  45.  
  46.     STRING sp_Reserved SIZE 12  /* 3*SIZEOF(LONGINT) */       /* SYSTEM reserved          */
  47.     LONGINT sp_Unit0Map           /* What unit 0 really refers to     */
  48.     LONGINT sp_BaudRate           /* Baud rate                */
  49.  
  50.     LONGINT sp_InputBuffer        /* Input buffer: 0 - 65536      */
  51.     LONGINT sp_OutputBuffer       /* Future: Output: 0 - 65536        */
  52.  
  53.     BYTE  sp_InputHandshake         /* Input handshaking            */
  54.     BYTE  sp_OutputHandshake        /* Future: Output handshaking       */
  55.  
  56.     BYTE  sp_Parity             /* Parity               */
  57.     BYTE  sp_BitsPerChar        /* I/O bits per character       */
  58.     BYTE  sp_StopBits           /* Stop bits                */
  59. END STRUCT 
  60.  
  61. /* constants for SerialPrefs.sp_Parity */
  62. #define PARITY_NONE 0
  63. #define PARITY_EVEN 1
  64. #define PARITY_ODD  2
  65. #define PARITY_MARK 3       /* Future enhancement */
  66. #define PARITY_SPACE    4       /* Future enhancement */
  67.  
  68. /* constants for SerialPrefs.sp_Input/OutputHandshaking */
  69. #define HSHAKE_XON  0
  70. #define HSHAKE_RTS  1
  71. #define HSHAKE_NONE 2
  72.  
  73.  
  74. /*****************************************************************************/
  75.  
  76.  
  77. #endif /* PREFS_SERIAL_H */
  78.